<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="../../../include/easyui.jsp" %>
<%@ include file="../../../include/pGrid.jsp" %>
<title>批注信息列表</title>
<script>
	$(function(){
		/*列表初始化*/
		var gridParam = {
			url :'/console/activiti/comment/commentList',
			queryParams:{
				processInstanceId: '${param.processInstanceId}'
			},
			columns : [ [ 
	            {field:'time',title:'时间',width:130},    
	 	        {field:'userId',title:'批注人',width:130},    
	 	        {field:'fullMessage',title:'批注信息',width:'50%'}    
			]],
			singleSelect : true
		};
		p.dataGrid = $(p.dataGrid).datagrid( $.extend({}, p.dataGridParam, gridParam));

		/*事件响应*/
		$("#toolbar .easyui-linkbutton").on("click", function() {
			var id = $(this).attr("motion_code");
			switch (id) {
				default:
					break;
			}
		});
	});
</script>
</head>
<body  class="easyui-layout">
		<!-- 表格 -->
		<div region="center" border="false">
			<table id="dataGrid"></table>
		</div>
</body>
</html>